/*
 * class for templating shields
 */

package item.defensive;

import item.Item;

import java.io.Serializable;

public class Shield extends Item implements DefensiveEnhancement, Serializable, Comparable<Shield> {
	
	private static final long serialVersionUID = -2044177556594323517L;
	
	public int shield; //how much shielding this item provides
	public int shieldRegen; //how much shield this item regenerates per turn
	
	//creates a Shield object
	
	public Shield(int cost, int condition, int level, int weight, int shield, int shieldRegen) {
		super(cost, condition, level, shield);
		this.shield = shield;
		name = "Shield";
		this.shieldRegen = shieldRegen;
	}//end of constructor with parameters Shield
	
	//natural ordering by amount of shield
	
	public int compareTo(Shield s) {
		return s.shield - this.shield;
	}//end of method compareTo
	
}//end of class Shield
